$vxe-table-validate-error-color: #f56c6c;

%ResetBorder {
  border: 0;
  box-shadow: none;
}

%CompWidth {
  & > .ant-input,
  & > .ant-input-number,
  & > .ant-select,
  & > .ant-cascader-picker,
  & > .ant-calendar-picker,
  & > .ant-time-picker,
  & > .ant-picker {
    width: 100%;
  }
}
.vxe-form {
  .vxe-form--item-content {
    @extend %CompWidth;
  }
  .vxe-form--item-inner {
    @extend %CompWidth;
  }
  .vxe-form--item {
    &.is--error {
      & > .vxe-form--item-content {
        & > .vxe-form--item-inner {
          & > .ant-input,
          & > .ant-select .ant-input,
          & > .ant-select .ant-select-selection,
          & > .ant-select .ant-select-selector,
          & > .ant-select:not(.ant-select-disabled) .ant-select-selector,
          & > .ant-select:hover .ant-select-selector,
          & > .ant-input-number,
          & > .ant-cascader-picker .ant-cascader-input,
          & > .ant-calendar-picker .ant-calendar-picker-input,
          & > .ant-picker .ant-picker-input,
          & > .ant-picker {
            border-color: var(--vxe-ui-form-validate-error-color, $vxe-table-validate-error-color);
            box-shadow: none;
          }
        }
      }
    }
  }
}
.vxe-table--filter-antd-wrapper {
  padding: 0.8em 1em;
  & > .ant-input,
  & > .ant-input-number,
  & > .ant-select,
  & > .ant-rate {
    width: 180px;
  }
}
.vxe-table {
  & > .vxe-cell,
  & > .vxe-cell > .vxe-cell--wrapper,
  & > .vxe-cell > .vxe-cell--wrapper > .vxe-cell--tree-node > .vxe-tree-cell {
    @extend %CompWidth;
    & > .ant-rate {
      vertical-align: bottom;
      .anticon-star {
        display: block;
      }
    }
  }
  .vxe-cell--wrapper {
    @extend %CompWidth;
    & > .ant-rate {
      vertical-align: bottom;
      .anticon-star {
        display: block;
      }
    }
  }
}
.col--valid-error {
  & > .vxe-cell,
  & > .vxe-cell > .vxe-cell--wrapper,
  & > .vxe-cell > .vxe-cell--wrapper > .vxe-cell--tree-node > .vxe-tree-cell {
    & > .ant-input,
    & > .ant-select .ant-input,
    & > .ant-select .ant-select-selection,
    & > .ant-select .ant-select-selector,
    & > .ant-select:not(.ant-select-disabled) .ant-select-selector,
    & > .ant-select:hover .ant-select-selector,
    & > .ant-input-number,
    & > .ant-cascader-picker .ant-cascader-input,
    & > .ant-calendar-picker .ant-calendar-picker-input,
    & > .ant-picker .ant-picker-input,
    & > .ant-picker {
      border-color: var(--vxe-ui-table-validate-error-color, $vxe-table-validate-error-color);
      box-shadow: none;
    }
  }
}
.vxe-table.cell--highlight {
  & > .vxe-cell,
  & > .vxe-cell > .vxe-cell--wrapper,
  & > .vxe-cell > .vxe-cell--wrapper > .vxe-cell--tree-node > .vxe-tree-cell {
    & > .ant-input,
    & > .ant-input-number {
      padding: 0;
      @extend %ResetBorder;
    }
    & > .ant-select .ant-input {
      padding: 0;
      @extend %ResetBorder;
    }
    & > .ant-input-number {
      .ant-input-number-input {
        padding: 0;
      }
      .ant-input-number-handler-wrap,
      .ant-input-number-handler-down {
        @extend %ResetBorder;
      }
    }
    & > .ant-select .ant-select-selection,
    & > .ant-select .ant-select-selector {
      @extend %ResetBorder;
      .ant-select-selection__rendered {
        margin: 0;
      }
    }
    & > .ant-cascader-picker {
      .ant-input {
        @extend %ResetBorder;
      }
      .ant-cascader-picker-label {
        padding: 0;
      }
    }
    & > .ant-calendar-picker .ant-calendar-picker-input {
      padding: 0;
      @extend %ResetBorder;
    }
    & > .ant-time-picker .ant-time-picker-input {
      padding: 0;
      @extend %ResetBorder;
    }
  }
}